import java.awt.Font;
import java.awt.GridLayout;

import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;


public class GuiSuccursale extends JFrame{
	
	private JLabel labelSum = new JLabel("Montant:");
	private JIntField champMontant = new JIntField(0, 0, Integer.MAX_VALUE);
	private JLabel labelSucc = new JLabel("Vers la Succursale:");
	private JComboBox listeSucc = new JComboBox();
	private JPanel pan = new JPanel();
	private JButton btnTransferer = new JButton("Transferer");
	private JButton btnEffacer = new JButton("Effacer");
	public  GuiSuccursale(){
		init();
	}
	public void init(){
		
		GridLayout gl = new GridLayout();
		gl.setColumns(2);
		gl.setRows(3);
		gl.setHgap(5);
		gl.setVgap(5);
		pan.setLayout(gl);
		
		labelSucc.setHorizontalAlignment(JLabel.CENTER);
		labelSucc.setFont(new Font("Tahoma", Font.BOLD, 11));
		
		labelSum.setHorizontalAlignment(JLabel.CENTER);
		labelSum.setFont(new Font("Tahoma", Font.BOLD, 11));
		
		pan.add(labelSucc);
		pan.add(listeSucc);
		pan.add(labelSum);
		pan.add(champMontant);
		pan.add(btnTransferer);
		pan.add(btnEffacer);
		
		this.setContentPane(pan);
		this.setSize(300, 150);
		this.setTitle("Succursale:");
		this.setDefaultCloseOperation(EXIT_ON_CLOSE);
		this.setLocationRelativeTo(null);
		this.setResizable(true);
		this.setVisible(true);
	}
	public static void main (String [] args){
		GuiSuccursale gs =new GuiSuccursale();
	}
}
